package com.ysx.common.constants;

import com.ysx.common.pojo.TokenRole;

/**
 * @author ljh
 * @version 1.0
 * @date 2021/2/22 15:13
 * @description 标题
 * @package com.itheima.common.constants
 */
public class SystemConstants {
    //JWT TOKEN已过期
    public static final Integer JWT_EXPIRE = 2;
    //JWT TOKEN有效
    public static final Integer JWT_OK = 1;
    //JWT TOKEN无效
    public static final Integer JWT_FAIL = 0;

    public static final Integer TYPE_USER = 1;//用户

    public static final Integer TYPE_E = 0;//设备

    public static final String REDIS_TOKEN_ADMIN_PREFIX = "token:userId:" + TokenRole.ROLE_ADMIN.name() + ":";
    public static final String REDIS_TOKEN_APP_PREFIX = "token:userId:" + TokenRole.ROLE_APP.name() + ":";
    public static final String REDIS_TOKEN_MEDIA_PREFIX = "token:userId:" + TokenRole.ROLE_MEDIA.name() + ":";


    //获取自媒体自定义请求头信息 包含用户名
    public static final String WEMEDIA_HEADER_USERID="userid";

    //获取APP用户 请求头中包含的用户名
    public static final String USER_HEADER_NAME="user_header_name";



}